<!-- inc:head -->
<div class="main">
	<div class="left"><!-- inc:inc/left --></div>
	<div class="right">
		<div class="vmenu"><h3>购物车</h3><span>&nbsp;</span></div>
		<div style="display:none;"><form method="post" action="{:site_url('checkout')}" onsubmit="return to_checkout('{if($rslist)}1{else}0{end}');"></div>
		<div class="border-notop"><div class="pd5" style="padding-bottom:5px;">
			<!-- if($rslist) -->
			<div style="background:#97BEF4;">
			<table width="100%" cellspacing="1">
			<tr bgcolor="#DCE9FA">
				<th align="center" height="28px">产品名称</th>
				<th width="60px" align="center">数量</th>
				<th width="100px" align="center">单价</th>
				<th width="45px" align="center">删除</th>
			</tr>
			<!-- $rslist AS $key=>$value -->
			<tr bgcolor="#FFFFFF">
				<td height="25px">&nbsp;<img src="images/lead.gif" /> {:$value[title]}</td>
				<td class="red" align="center">
					<img src="images/minus.gif" class="hand" onclick="cart_minus('{:$value[id]}',{:$value[amount]});" />
					&nbsp;{:$value[amount]}&nbsp;
					<img src="images/plus.gif" class="hand" onclick="cart_plus('{:$value[id]}',{:$value[amount]});" />
				</td>
				<td align="center">{:sys_format_price($value[price])}</td>
				<td align="center"><img src="images/del.gif" class="hand" onclick="cart_del('{:$value[id]}');" /></td>
			</tr>
			<!-- end -->
			<tr bgcolor="#DCE9FA">
				<td colspan="4">
					<table width="100%">
					<tr>
						<td><button onclick="history.back();" type="button" class="btn" title="返回上一页"><span><span>返回上一页</span></span></button></td>
						<td align="right">产品总价：&nbsp;{:sys_format_price($total_price)}</td>
					</tr>
					</table>
				</td>
			</tr>
			</table>
			</div>
			<!-- else -->
			<div style="padding:10px;text-align:center;">购物车为空！</div>
			<!-- end -->
		</div></div>
		<div class="line"></div>
		<div class="vmenu"><h3>收货人信息</h3><span>&nbsp;</span></div>
		<div class="border-notop"><div class="pd5">
			<table width="100%">
			<tr>
				<td width="120px" align="right"><span class="red">*</span> 姓名：</td>
				<td><input type="text" id="fullname" name="fullname" value="{:$user_rs[fullname]}" /> 请填写收货人的姓名</td>
			</tr>
			<tr>
				<td align="right"><span class="red">*</span> 电话：</td>
				<td><input type="text" id="tel" name="tel" value="{:$user_rs[tel]}" /> 请填写收货人的联系电话</td>
			</tr>
			<tr>
				<td align="right">手机：</td>
				<td><input type="text" id="mobile" name="mobile" value="{:$user_rs[mobile]}" /> 请填写收货人的手机号</td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>固定电话或手机号码至少要填写一个，以方便客服与您取得联系</td>
			</tr>
			<tr>
				<td align="right"><span class="red">*</span> 地址：</td>
				<td><input type="text" id="address" name="address" class="long_input" value="{:$user_rs[address]}" /> 填写收货人的详细地址</td>
			</tr>
			<tr>
				<td align="right"><span class="red">*</span> 邮编：</td>
				<td><input type="text" id="zipcode" name="zipcode" class="short_input" value="{:$user_rs[zipcode]}" /> 请填写邮编号码</td>
			</tr>
			<tr>
				<td align="right">备注：</td>
				<td><textarea class="long_input" name="note" id="note" style="height:65px;"></textarea></td>
			</tr>
			<tr>
				<td align="right" valign="top">说明：</td>
				<td class="red" style="line-height:150%;">如果您给朋友购买商品，请在备注里填上您的姓名及联系手机（电话）<br />我们推荐您注册成为我们的会员后再购买商品<br />这样子您可以在个人中心看到您的订单信息</td>
			</tr>
			<tr>
				<td align="right"><span class="red">*</span> Email：</td>
				<td><input type="text" id="email" name="email" value="{:$user_rs[email]}" /> 请填写您的邮箱</td>
			</tr>
			<!-- if(function_exists("imagecreate") && defined("SYS_VCODE_USE") && SYS_VCODE_USE == true) -->
			<tr>
				<td align="right">验证码：</td>
				<td><input name="sys_check" id="sys_check" type="text" style="width:50px;" /><span id="phpok_update_code"><img src="{:site_url('login,codes')}" border="0" align="absmiddle" style="cursor:pointer;" onclick="phpok_update_code()"></span></td>
			</tr>
			<!-- end -->
			</table>
		</div></div>
		<div class="line"></div>
		<div align="right"><input type="submit" id="_phpok_submit" value="确认购买" /></div>
		</form>
	</div>
	<div class="clear"></div>
</div>
<!-- inc:foot -->